﻿namespace Hidistro.UI.Common.Controls
{
    using Hidistro.Core;
    using Hidistro.Membership.Context;
    using Hidistro.Membership.Core.Enums;
    using Hidistro.SaleSystem.Member;
    using Newtonsoft.Json;
    using Newtonsoft.Json.Linq;
    using System;
    using System.IO;
    using System.Net;
    using System.Text;
    using System.Web;
    using System.Web.Security;
    using System.Web.UI;

    [PersistChildren(false), ParseChildren(true)]
    public abstract class VMemberTemplatedWebControl : VshopTemplatedWebControl
    {
        protected VMemberTemplatedWebControl()
        {
            if (!(HiContext.Current.User is Member))
            {
                if (string.IsNullOrEmpty(Page.Request.QueryString["IsAnonymous"]))
                {
                    this.Page.Response.Redirect("Login.aspx?returnUrl=" + HttpContext.Current.Request.Url.ToString());
                }
            }
        }

    
    }
}

